﻿@model MobiShop.Models.LogOnModel

@{
    ViewBag.Title = "Đăng nhập hệ thống";
    Layout = "~/Views/Shared/_Layout.cshtml";
   
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Đăng nhập hệ thống</legend>
        <span style=" color:green; font-style:italic;">@ViewBag.ThongBao</span>
    <table border="0" cellpadding="0" cellspacing="5">
        <tr>
            <td style="width:140px" > 
                @Html.LabelFor(model => model.username)
            </td>
            <td>
                @Html.TextBoxFor(model => model.username, new { @class = "registerTextbox" })
                @Html.ValidationMessageFor(model => model.username, "", new { @class = "error-message" })
            </td>
        </tr>
        <tr>
            <td > 
                @Html.LabelFor(model => model.password)
            </td>
            <td>
               @Html.PasswordFor(model => model.password, new { @class = "registerTextbox" })
               @Html.ValidationMessageFor(model => model.password,"", new { @class = "error-message" })
            </td>
        </tr>
        <tr>
            <td > 
            </td>
            <td>
                @Html.EditorFor(model => model.rememberMe)
                @Html.LabelFor(model => model.rememberMe)
                <br />
                <input type="submit" value="Đăng nhập" />
            </td>
        </tr>
    </table> 
 </fieldset>
}

